// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.

//Vue全家桶指的是 创建SPA(单页应用)的技术栈
//Vue +Vue-router+Vuex+axios+(vue-lazyload)
//页面跳转路由 Vue-router
//兄弟组件之间状态管理 Vuex
//官方推荐工具 请求数据  axios
//优化图片懒加载   vue-lazyload

import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store'
import fastclick from "fastclick"
//import Vconsole from './assets/until/vconsole'
import VueLazyload  from 'vue-lazyload'
import axios from 'axios'



Vue.use(VueLazyload)

console.log(process.env.NODE_ENV)
const baseURL=process.env.NODE_ENV!=="production"?'http://localhost:8000':'https://www.easy-mock.com/mock/5aa77cbd2b0894377fc7663a'

axios.interceptors.request.use(function(config){
	config.baseURL= baseURL
	return config;
})
fastclick.attach(document.body)
Vue.config.productionTip = false




/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
